package com.iflytek.uoamp.agent.core.sender.loggersender.requestobj;

import java.io.Serializable;

/**
 * @ClassName: ProgramLog
 * @Description: 程序运行日志
 * @author qinanyuan
 * @date 2017年4月18日 上午9:25:56
 */
public class ProgramLog implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2077388444202936796L;

	//日志类型
	private SDKLogType sdkLogType;
	
	//应用名
	private String webappName;
	
	//应用端口
	private int webappPort;
	
	//链路唯一id
	private String traceId;
	
	//父节点id
	private String parentId;
	
	//当前节点id
	private String spanId;
	
	//服务器ip
	private String localIp;
	
	//客户端ip
	private String remoteIp;
	
	//开始时间
	private long stm;
	
	//结束时间
	private long etm;
	
	//使用时间
	private long utm;
	
	//业务名
	private String bizName;
	
	//操作类型
	private String operateType;
	
	//操作状态
	private String flag;
	
	//请求资源标识
	private String requri;
	
	//类名
	private String className;
	
	//方法名
	private String methodName;
	
	//预留
	private String msg;
	
	//入参
	private String inputArgs;
	
	//出参
	private String outputArgs;

	//应用编码
	private String appCode;
	
	public ProgramLog() {
		super();
	}

	public ProgramLog(SDKLogType sdkLogType, String webappName, int webappPort, String traceId, String parentId, String spanId, String localIp,
			String remoteIp, long stm, long etm, long utm, String bizName, String operateType, String flag, String requri,
			String className, String methodName, String msg, String inputArgs, String outputArgs) {
		super();
		this.sdkLogType = sdkLogType;
		this.webappName = webappName;
		this.webappPort = webappPort;
		this.traceId = traceId;
		this.parentId = parentId;
		this.spanId = spanId;
		this.localIp = localIp;
		this.remoteIp = remoteIp;
		this.stm = stm;
		this.etm = etm;
		this.utm = utm;
		this.bizName = bizName;
		this.operateType = operateType;
		this.requri = requri;
		this.className = className;
		this.methodName = methodName;
		this.msg = msg;
		this.inputArgs = inputArgs;
		this.outputArgs = outputArgs;
	}

	public SDKLogType getSdkLogType() {
		return sdkLogType;
	}

	public void setSdkLogType(SDKLogType sdkLogType) {
		this.sdkLogType = sdkLogType;
	}

	public String getWebappName() {
		return webappName;
	}

	public void setWebappName(String webappName) {
		this.webappName = webappName;
	}

	public int getWebappPort() {
		return webappPort;
	}

	public void setWebappPort(int webappPort) {
		this.webappPort = webappPort;
	}

	public String getTraceId() {
		return traceId;
	}

	public void setTraceId(String traceId) {
		this.traceId = traceId;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getSpanId() {
		return spanId;
	}

	public void setSpanId(String spanId) {
		this.spanId = spanId;
	}

	public String getLocalIp() {
		return localIp;
	}

	public void setLocalIp(String localIp) {
		this.localIp = localIp;
	}

	public String getRemoteIp() {
		return remoteIp;
	}

	public void setRemoteIp(String remoteIp) {
		this.remoteIp = remoteIp;
	}

	public long getStm() {
		return stm;
	}

	public void setStm(long stm) {
		this.stm = stm;
	}

	public long getEtm() {
		return etm;
	}

	public void setEtm(long etm) {
		this.etm = etm;
	}

	public long getUtm() {
		return utm;
	}

	public void setUtm(long utm) {
		this.utm = utm;
	}

	public String getBizName() {
		return bizName;
	}

	public void setBizName(String bizName) {
		this.bizName = bizName;
	}

	public String getOperateType() {
		return operateType;
	}

	public void setOperateType(String operateType) {
		this.operateType = operateType;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public String getRequri() {
		return requri;
	}

	public void setRequri(String requri) {
		this.requri = requri;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getInputArgs() {
		return inputArgs;
	}

	public void setInputArgs(String inputArgs) {
		this.inputArgs = inputArgs;
	}

	public String getOutputArgs() {
		return outputArgs;
	}

	public void setOutputArgs(String outputArgs) {
		this.outputArgs = outputArgs;
	}

	public String getAppCode() {
		return appCode;
	}

	public void setAppCode(String appCode) {
		this.appCode = appCode;
	}

}
